package Logic.Guild.Event;

import FrameWork.EventBus.IEvent;
import FrameWork.Model.Player;

public class ReqJoinGuildEvent implements IEvent {
    private final int guildId;
    private final Player player;
    private byte mod;                                 //当前请求的模式
    private boolean result = false;                   //消费是否成功的结果
    private final static byte ReqJoinGuild = 1;        //初次请求加入公会
    private final static byte ConsumeResource = 2;    //消费物品后请求加入公会

    public ReqJoinGuildEvent(Player player, int guildId){
        this.player = player;
        this.guildId = guildId;
    }

    public void setMod(byte mod) {
        this.mod = mod;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public int getGuildId() {
        return guildId;
    }

    public Player getPlayer() {
        return player;
    }

    public byte getMod() {
        return mod;
    }

    public boolean getResult() {
        return result;
    }

    public static byte getReqPartInGuild() {
        return ReqJoinGuild;
    }

    public static byte getConsumeResource() {
        return ConsumeResource;
    }
}
